package registration;

import java.awt.Dimension;

import wizard.Wizard;
import wizard.WizardPanelDescriptor;

public class Main {
    
    public static void main(String[] args) {
        
        Wizard wizard = new Wizard();
        wizard.getDialog().setTitle("Vote registration");
        
        WizardPanelDescriptor pdpDescriptor = new PersonalDataPanelDescriptor();
        wizard.registerWizardPanel(PersonalDataPanelDescriptor.IDENTIFIER, pdpDescriptor);

        WizardPanelDescriptor rcpDescriptor = new RegistrationCompletePanelDescriptor();
        wizard.registerWizardPanel(RegistrationCompletePanelDescriptor.IDENTIFIER, rcpDescriptor);
//
//        WizardPanelDescriptor descriptor3 = new TestPanel3Descriptor();
//        wizard.registerWizardPanel(TestPanel3Descriptor.IDENTIFIER, descriptor3);
        
        wizard.setCurrentPanel(PersonalDataPanelDescriptor.IDENTIFIER);
        //wizard.setCurrentPanel(RegistrationCompletePanelDescriptor.IDENTIFIER);
        int r;
        wizard.getDialog().setSize(600, 400);
        r = wizard.showModalDialog(true);
//        System.out.println("Dialog return code is (0=Finish,1=Cancel,2=Error): " + r);
//        System.out.println("Second panel selection is: " + 
//            (((TestPanel2)descriptor2.getPanelComponent()).getRadioButtonSelected()));
        
        System.exit(0);
        
    }
    
}
